cmake_minimum_required(VERSION 3.18.0)
project(sg_game_engine VERSION 0.1.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

aux_source_directory(. SRC_LIST)
add_library(sg_game_engine SHARED ${SRC_LIST})

# SDL
set(SDL2_LIBRARY "D:/code/res/third_party/SDL2-devel-2.30.11-mingw/SDL2-2.30.11/x86_64-w64-mingw32")
target_include_directories(sg_game_engine PUBLIC ${SDL2_LIBRARY}/include/SDL2)
target_link_libraries(sg_game_engine PUBLIC ${SDL2_LIBRARY}/lib/libSDL2.dll.a)
target_link_libraries(sg_game_engine PUBLIC ${SDL2_LIBRARY}/lib/libSDL2.a)
target_link_libraries(sg_game_engine PUBLIC ${SDL2_LIBRARY}/lib/libSDL2main.a)